package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.UserGoodsCouponDAO;
import top.zywork.dos.UserGoodsCouponDO;
import top.zywork.dto.UserGoodsCouponDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.UserGoodsCouponService;

import javax.annotation.PostConstruct;

/**
 * UserGoodsCouponServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-08-07<br/>
 *
 * @author http://zywork.top 危锦辉
 * @version 1.0
 */
@Service(value = "userGoodsCouponService")
public class UserGoodsCouponServiceImpl extends AbstractBaseService implements UserGoodsCouponService {

    private UserGoodsCouponDAO userGoodsCouponDAO;

    @Autowired
    public void setUserGoodsCouponDAO(UserGoodsCouponDAO userGoodsCouponDAO) {
        super.setBaseDAO(userGoodsCouponDAO);
        this.userGoodsCouponDAO = userGoodsCouponDAO;
    }

    @PostConstruct
    public void init() {
        super.init(UserGoodsCouponDO.class, UserGoodsCouponDTO.class);
    }
}
